#include <stdio.h>
#include "mystring.h"

int main()
{
	MyString str1("I Love China");
	MyString str2("I Love China22");
	MyString str3(str1);
	MyString str4 = str1;
	str3 = str2;

	str1.RefCount();
	str2.RefCount();
	str3.RefCount();
	str4.RefCount();

	cout << str1[0] << endl;
	str1[0] = 'Y';
	cout << str1[0] << endl;
	return 0;
}